package com.exmaple.dto;

import com.exmaple.loadBalance.LoadBalanceEnum;
import com.exmaple.utils.IdUtil;

import java.io.Serializable;

public class RpcRequest implements Serializable {

    private String requestId;

    private String className;

    private LoadBalanceEnum loadBalanceEnum;

    private long startTime;

    private long endTime;

    private String fromId;

    private String targetId;

    private Integer jobId;

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public LoadBalanceEnum getLoadBalanceEnum() {
        return loadBalanceEnum;
    }

    public void setLoadBalanceEnum(LoadBalanceEnum loadBalanceEnum) {
        this.loadBalanceEnum = loadBalanceEnum;
    }

    public Integer getJobId() {
        return jobId;
    }

    public void setJobId(Integer jobId) {
        this.jobId = jobId;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public RpcRequest() {
        this.requestId = IdUtil.getId();
    }
}
